<div class="fui-page order-list-page" ng-if="pagedata.op == 'list'">
     <div class="fui-header">
        <div class="fui-header-left">
            <a class="back" ng-click="goback()"></a>
        </div>
        <div class="title">我的订单</div>
        <div class="fui-header-right">
            <a class="icon icon-delete ">回收站</a>
        </div>
    </div>
    <div ng-show="pagedata.status != 4" class="fui-tab fui-tab-danger">
		 <a ng-class="{'external active':pagedata.status == 100}" ng-click="pagedata.status = 100;tool.get_list('core/account.myorder//status=100',true)">全部</a>
        <a ng-class="{'external active':pagedata.status == 0}" ng-click="pagedata.status = 0;tool.get_list('core/account.myorder//status=0',true)">待付款</a>
        <a ng-class="{'external active':pagedata.status == 1}" ng-click="pagedata.status = 1;tool.get_list('core/account.myorder//status=1',true)">已付款</a>
        <a ng-class="{'external active':pagedata.status == 2}" ng-click="pagedata.status = 2;tool.get_list('core/account.myorder//status=2',true)">支付失败</a> 
    </div>
	<div class='fui-content navbar order-list' style="margin-top:0.2rem">
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" data-nocache="true" ng-click="access_json('core/account.myorder/detail/id='+item.id)">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.ordersn}}</div>
                    </div>
                    <div class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">{{item.statustitle}}</div>
                    <div class="angle"></div>
                </a> 
					<div>
						<a href="javascript:;" data-nocache="true" ng-click="access_json('core/home.group_store/detail/id='+item.groupid)">
							<div class="fui-list-group-title lineblock bold">
								<i class="icon jinyunicon icon-wode1"></i> {{item.grouptitle}}
								<span class="status noremark" style="font-size:0.50rem" ><i class="icon jinyunicon icon-icon-test"></i></span>
							</div>
						</a>
						<a href="javascript:;" class="external" ng-click="access_json('core/account.myorder/detail/id='+item.id)">
							<div class="fui-list goods-list">
								<div class="fui-list-media" style="">
									<img class="" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="text goodstitle towline">{{item.title}}</div>
								</div>
								<div class="fui-list-angle" style="width:3rem">
									￥<span class="marketprice">{{item.price}}</span></div>
							</div>
						</a>
					</div>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">实付: <span class="text-danger">￥{{item.price}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 0" class="btn btn-sm btn-default-o order-delete" href="javascript:;" ng-click="post({'id':item.id},'cancel')">取消订单</div>
					<div ng-show="item.status == 0 && item.paytype!='peerpay'" class="btn btn-sm btn-danger-o order-finish" ng-click="pay_submit({},'core/account.myorder/pay/id='+item.id,'core/account.myorder/')">支付订单</div>					
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>
<div class="fui-page order-list-page" ng-if="pagedata.op == 'detail'">
	<link rel="stylesheet" type="text/css" href="../addons/jy_weishop/custom/templates/mobile/css/orderdetail.css?v=2.0.3">
	<div class="fui-page cav order_detail">
		<div class="fui-header">
			<div class="fui-header-left">
				<a class="back" ng-click="goback()"></a>
			</div>
			<div class="title">
				订单详情
			</div>
			<div class="fui-header-right"></div>
		</div>
		<div class="fui-content navbar" style="top:0">
			<!--状态-->
			<div class="order_detail_header">
				<div class="order_detail_ststus">
					<div class="bold">
						<div style="font-size: 0.85rem;"><i class="icon jinyunicon icon-information"></i> {{pagedata.item.status}} </div>
					</div>
					<div>订单金额：<span>(套餐总价)</span>&yen; {{pagedata.item.price}}</div>
				</div>
			</div>
		<div class="fui-cell-group">
			<div class="fui-cell">
				<div class="fui-cell-info">
					账户：{{pagedata.member.name}} （{{pagedata.member.nickname || '无昵称'}}）
				</div>
				<div class="fui-cell-remark noremark">
				</div>
			</div>
			<div class="fui-cell" ng-if="pagedata.member.mobile">
				<div class="fui-cell-info">
					电话：{{pagedata.member.mobile}}
				</div>
				<div class="fui-cell-remark noremark">
				</div>
			</div>
		</div>
		<!--商品小计-->
		<div class="fui-cell-group noborder">
			<div class="fui-cell">
				<div class="fui-cell-label">费用小计</div>
				<div class="fui-cell-info">
					(套餐总价)
				</div>
				<div class="fui-cell-remark noremark">
					&yen; {{pagedata.item.price}}
				</div>
			</div>
			<div class="fui-cell">
				<div class="fui-cell-label">技术支持费</div>
				<div class="fui-cell-info">

				</div>
				<div class="fui-cell-remark noremark">
					&yen; 0.00
				</div>
			</div>
				<div class="fui-cell bold" style="">
					<div  class="fui-cell-label" style="width: auto;">总费用(含技术支持)</div>
					<div class="fui-cell-info">

					</div>
					<div class="fui-cell-remark noremark text-danger">
						 <span style='font-size:.75rem'>&yen;{{pagedata.item.price}}
					</div>
				</div>
			</div>

			<div class="fui-cell-group noborder order-info">
				<div class="fui-cell">
					<div class="fui-cell-info">
						<span style="margin-right: 0.7rem;">订单编号</span>{{pagedata.item.ordersn}}
					</div>
					<div class="fui-cell-remark noremark">

					</div>
				</div>
				<div class="fui-cell">
					<div class="fui-cell-info">
						<span style="margin-right:0.7rem;">创建时间</span>{{pagedata.item.createtime}}
					</div>
					<div class="fui-cell-remark noremark">

					</div>
				</div>
					<div ng-show='pagedata.item.status>=1 && pagedata.item.paytime > 0' class="fui-cell">
						<div class="fui-cell-info">
							<span style="margin-right: 0.7rem;">支付时间</span>{{pagedata.item.paytime}}
						</div>
						<div class="fui-cell-remark noremark">

						</div>
					</div>
			</div>
		</div>
		<div class="fui-footer" style="text-align: right;">
			<div ng-show="pagedata.item.status==0" class="btn btn-sm btn-default-o order-cancel" href="javascript:" ng-click="post({},'cancel','id='+pagedata.item.id)">取消订单
						<select data-orderid="{{pagedata.item.id}}">
							<option value="">不取消了</option>
							<option value="我不想买了">我不想买了</option>
							<option value="信息填写错误，重新拍">信息填写错误，重新拍</option>
							<option value="同城见面交易">同城见面交易</option>
							<option value="其他原因">其他原因</option>
						</select>
			</div>
			<a ng-show="pagedata.item.status==0" class="btn btn-sm btn-red-o"  ng-click="pay_submit({},'core/account.myorder/pay/id='+pagedata.item.id)">支付订单</a>
		</div>
</div>
<script>
if(scope.pagedata.op=='list'){
	scope.tool.get_list('core/account.myorder/',true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('core/account.myorder//status='+scope.pagedata.status);
	}
}
</script>